<template>
  <button @click="handleClick">test</button>
  <p>{{myName}}</p>
</template>

<script>

export default {
  name: 'App',
  setup (props, context) {
    console.log('setup')
    let myName = 'liuxin'

    setTimeout(() => {
      myName = 'test'
    }, 2000);
    return {
      myName,
      handleClick () {
        alert('hello world')
      }
    }
  }
}
</script>

<style>

</style>
